package client;

import java.util.Hashtable;

import client.view.FriendList;

public class FriendListManager {

	private static Hashtable<Integer, FriendList> friendListFrames = new Hashtable<>();

    public static void addFriendListFrame(Integer userid,FriendList fl){  //frame的命名方式是：myname+friendname
        friendListFrames.put(userid,fl);
    }

    public static FriendList getFriendListFrame(int userid){
        return friendListFrames.get(userid);
    }

    public static FriendList removeFriendListFrame(int userid){
        return friendListFrames.remove(userid);
    }
}
